package cn.ilikes.tools.nosql.test.jpa.pojos;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import cn.ilikes.tools.nosql.jpa.annotations.IndexColumn;

@Entity
@Table(name = "pe_evaluation_kpi", schema = "ilikes")
public class EvaluationKpi {

	@Id
	@IndexColumn(index = IndexColumn.Index.analyzed, name = "id", store = IndexColumn.Store.yes)
	private Integer uuid;
	@Column(name = "desc")
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "desc", store = IndexColumn.Store.no)
	private String desc;
	@Column(name = "content")
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "content", store = IndexColumn.Store.no)
	private String content;

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "evaluation_kpi_libs_id", nullable = false)
	@IndexColumn(index = IndexColumn.Index.not_analyzed, name = "evaluationKpilibs", store = IndexColumn.Store.no)
	private EvaluationKpilibs evaluationKpilibs;

	public Integer getUuid() {
		return uuid;
	}

	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public EvaluationKpilibs getEvaluationKpilibs() {
		return evaluationKpilibs;
	}

	public void setEvaluationKpilibs(EvaluationKpilibs evaluationKpilibs) {
		this.evaluationKpilibs = evaluationKpilibs;
	}

}